package sk.fhi.shared.model;

import com.googlecode.objectify.annotation.Entity;

/**
 * Contact entity
 * 
 * @author simo
 * 
 */
@Entity
public class Contact extends AbstractEntity {

	public String firstName;
	public String lastName;
	public String emailAddress;

	public Contact() {
		super();
	}

	public Contact(Long id) {
		super(id);
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	public String getFullName() {
		return firstName + " " + lastName;
	}

	@Override
	public String toString() {
		return "Contact [firstName=" + firstName + ", lastName=" + lastName
				+ ", emailAddress=" + emailAddress + ", id=" + id + "]";
	}

	public String getDisplayName() {
		return firstName + " " + lastName;
	}

}
